.blgcomment-list>li:nth-child(n+2) {
    margin-block-start: 15px !important;
}
.custom-card {
    border: 1px solid #ced4da;
}
.customizer-action svg{
    width: 23px !important;
    color: #ffffff !important;
}
.active-mode{
    border: solid 2px #000000 !important;
}
.property-img{
    max-width: 507px;
    max-height: 286px;
}
.text-justify{
    text-align: justify;
}
.custom .media{
    padding: 10px !important;
}
.user-avatar{
    width: 30px;
    height: 30px;
}
@media only screen and (max-width: 410px) {
    .header_li {
        display: none !important;
    }
}
.blgcomment-list li .media img{
    width: auto;
    height: 40px !important;
}

#card-element {
    border: 1px solid #e5e5e5 !important;
    border-radius: 5px !important;
    padding: 13px !important;
}
.codex-sidebar .logo-gridwrap{
    padding: 0px 16px !important;
}

.setting-logo{
    width:300px !important;;
}

/* Admin Header Profile Section Enhancements */
.codex-header .header-right {
    margin-left: auto;
}

.codex-header .header-right .nav-iconlist {
    margin: 0;
    padding: 0;
}

.codex-header .header-right .nav-profile {
    position: relative;
}

.codex-header .header-right .nav-profile .media {
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.codex-header .header-right .nav-profile .media:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.codex-header .header-right .nav-profile .user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.codex-header .header-right .nav-profile .user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.codex-header .header-right .nav-profile .media-body {
    margin-left: 12px;
}

.codex-header .header-right .nav-profile .media-body h6 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.codex-header .header-right .nav-profile .media-body span {
    font-size: 12px;
    color: #6c757d;
    text-transform: capitalize;
}

.codex-header .header-right .navprofile-drop {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
}

.codex-header .header-right .nav-profile:hover .navprofile-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.codex-header .header-right .navprofile-drop ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.codex-header .header-right .navprofile-drop ul li {
    margin: 0;
}

.codex-header .header-right .navprofile-drop ul li a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.codex-header .header-right .navprofile-drop ul li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.codex-header .header-right .navprofile-drop ul li a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Dark mode support */
body.darkmode .codex-header .header-right .nav-profile .media:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.darkmode .codex-header .header-right .nav-profile .media-body h6 {
    color: #fff;
}

body.darkmode .codex-header .header-right .nav-profile .media-body span {
    color: #b8c1cc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .codex-header .header-right .nav-profile .media-body {
        display: none;
    }
    
    .codex-header .header-right .nav-profile .user-icon {
        width: 35px;
        height: 35px;
    }
}

.landing-logo{
    width: 180px !important;
}
.lan-footer .codex-brand{
    margin-block-end: 0px !important;
}
.email-sidebar ul.custom-sidebarmenu-list {
    margin-block-start: 0px;
}
.invoice-logo{
    width: 250px;
}

.codex-calendar .events-list li{
    font-size: 13px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 5px;
    color: #fff;
    line-height: 1;
}
.codex-calendar .events-list{
    overflow: auto;
    height: 863px;
}
.landing_logo{
    filter: drop-shadow(2px 3px 7px #011C4B);
}
.head-invoice img{
    width: 250px;
}
.cdx-invoice .body-invoice .table tr td{
    padding: 10px 10px !important;
}


.codex-brand img{
    width: 300px;
}
.codex-authbox .auth-header .codex-brand {
    margin-block-end: 0px;
}


.intro {
    background-repeat: no-repeat;
    background-size: cover;
}

.landing_dash {
    position: absolute;
    right: 0px;
    top: 50%;
    left: auto;
    bottom: 0;
    transform: translateY(-50%);
    overflow: hidden;
    height: 585px;
    display: flex;
    align-items: center;
    width: 60%;
}

.landing_dash img {
    object-fit: cover;
    position: relative;
    right: -220px;
    border-radius: 10px;
    left: auto;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 1440px) {
    .landing_dash {
        display: none;
    }
}

.lan-footer {
    text-align: center;
    background-color: unset;
}
.lan-footer .support-contain p {
    color: #051722;
    font-size: calc(16px + 4*(100vw - 420px) / 1500);
}

.select2-container .select2-selection--single {
    height: 43px !important;
    border-color: #e5e5e5;
}
.select2-container .select2-selection--multiple{
    min-height: 43px !important;
}
.select2-container--default .select2-selection--multiple{
    border: 1px solid #e5e5e5;
}

/* Vehicle Status Cards */
.vehicle-status-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.vehicle-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-status-card.moving {
    border-left: 4px solid #10b981;
}

.vehicle-status-card.idle {
    border-left: 4px solid #f59e0b;
}

.vehicle-status-card.offline {
    border-left: 4px solid #ef4444;
}

.status-icon {
    margin-right: 15px;
    font-size: 24px;
}

.vehicle-status-card.moving .status-icon {
    color: #10b981;
    animation: pulse 2s infinite;
}

.vehicle-status-card.idle .status-icon {
    color: #f59e0b;
}

.vehicle-status-card.offline .status-icon {
    color: #ef4444;
}

.status-content h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #374151;
}

.status-content p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Individual Vehicle List */
.vehicle-list {
    max-height: 500px;
    overflow-y: auto;
}

.vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.vehicle-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vehicle-item.moving {
    border-left: 4px solid #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
}

.vehicle-item.idle {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), transparent);
}

.vehicle-item.offline {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05), transparent);
}

.vehicle-info {
    flex: 1;
}

.vehicle-name {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.vehicle-model {
    font-size: 14px;
    color: #6b7280;
    margin-left: 10px;
}

.vehicle-details {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.license-plate {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

.vehicle-type {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
}

.vehicle-status {
    text-align: right;
    min-width: 150px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.status-indicator.moving {
    color: #10b981;
}

.status-indicator.moving i {
    animation: pulse 2s infinite;
}

.status-indicator.idle {
    color: #f59e0b;
}

.status-indicator.offline {
    color: #ef4444;
}

.last-seen, .location {
    color: #6b7280;
    font-size: 12px;
    margin-top: 3px;
}

.location i {
    margin-right: 5px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .vehicle-status-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .status-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .status-content h3 {
        font-size: 24px;
    }
}

/* Footer link styles */
.footer-menu__list--v3 a,
.footer-copyright__menu a,
.footer-copyright__text a,
.footer-social__v3 .social-icon a {
    color: white !important;
    transition: color 0.3s ease;
}

.footer-menu__list--v3 a:hover,
.footer-copyright__menu a:hover,
.footer-copyright__text a:hover,
.footer-social__v3 .social-icon a:hover {
    color: #b39beb !important;
}

/* Fix admin header user profile display - left aligned */
.codex-header .nav-profile {
    position: relative !important;
    cursor: pointer !important;
}

.codex-header .nav-profile .media {
    display: flex !important;
    align-items: center !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease !important;
}

.codex-header .nav-profile:hover .media {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
}

.codex-header .user-icon img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 5px !important;
    object-fit: cover !important;
    border: 1px solid #e9ecef !important;
}

.codex-header .media-body h6 {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #051722 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.codex-header .media-body span {
    font-size: 13px !important;
    color: #6c757d !important;
    text-transform: capitalize !important;
    line-height: 1 !important;
}

.codex-header .navprofile-drop {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    padding: 8px 0 !important;
    z-index: 1000 !important;
    display: none !important;
    margin-top: 5px !important;
}

.codex-header .nav-profile:hover .navprofile-drop {
    display: block !important;
}

.codex-header .navprofile-drop ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.codex-header .navprofile-drop ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.codex-header .navprofile-drop ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    color: #262626 !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    font-size: 14px !important;
}

.codex-header .navprofile-drop ul li a:hover {
    background-color: #f8f9fa !important;
    color: var(--primary-bg-color) !important;
}

.codex-header .navprofile-drop ul li a i {
    margin-right: 8px !important;
    font-size: 14px !important;
    width: 14px !important;
}

/* Ensure header is visible and properly positioned */
.codex-header {
    background: white !important;
    border-bottom: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    position: fixed !important;
    z-index: 1000 !important;
    width: calc(100% - 270px) !important;
    left: 270px !important;
    top: 0 !important;
}

/* Left-aligned header layout */
.codex-header .header-contian {
    justify-content: flex-start !important;
}

.codex-header .header-left {
    width: 100% !important;
}

.codex-header .header-left .nav-iconlist {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
}

/* Fix sidebar content overlap issue */
.codex-sidebar {
    overflow: visible !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 999 !important;
}

.codex-sidebar .codex-menu {
    overflow: visible !important;
    overflow-y: auto !important;
    max-height: calc(100vh - 100px) !important;
}

.codex-menu li {
    overflow: visible !important;
}

.codex-menu li a {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Fix dashboard layout overlapping issues */
.page-wrapper {
    position: relative !important;
    z-index: 1 !important;
    margin-left: 270px !important; /* Account for sidebar width */
}

.page-body {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 81px !important; /* Account for fixed header height */
    padding-top: 20px !important;
}

/* Ensure charts render properly */
#earning-chart,
#visitor-chart,
#visitor-rank {
    min-height: 300px !important;
    width: 100% !important;
}

/* Fix card overlapping */
.card {
    position: relative !important;
    z-index: auto !important;
    margin-bottom: 20px !important;
}

/* Fix dashboard container spacing */
.container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Responsive fixes */
@media (max-width: 1200px) {
    .page-wrapper {
        margin-left: 0 !important;
    }
    
    .codex-header {
        width: 100% !important;
        left: 0 !important;
    }
    
    body.daactive-sidebar .page-wrapper {
        margin-left: 270px !important;
    }
    
    body.daactive-sidebar .codex-header {
        width: calc(100% - 270px) !important;
        left: 270px !important;
    }
}
